DataSource for Entity Framework in WPF
C1.LiveLinq.LiveViews Namespace / View<T> Class / GroupBy Method / GroupBy<TKey,TElement,TResult>(Expression<Func<T,TKey>>,Expression<Func<T,TElement>>,Expression<Func<TKey,IEnumerable<TElement>,TResult>>) Method
The type of the key returned by keySelector.
The type of the elements in groups.
The type of the result value returned by resultSelector.
A function to extract the key for each element.
A function to map each source element to an element in the IGrouping.
A function to create a result value from each group.

In This Topic
    GroupBy<TKey,TElement,TResult>(Expression<Func<T,TKey>>,Expression<Func<T,TElement>>,Expression<Func<TKey,IEnumerable<TElement>,TResult>>) Method
    In This Topic
    Groups the elements of a view according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.
    Syntax

    Parameters

    keySelector
    A function to extract the key for each element.
    elementSelector
    A function to map each source element to an element in the IGrouping.
    resultSelector
    A function to create a result value from each group.

    Type Parameters

    TKey
    The type of the key returned by keySelector.
    TElement
    The type of the elements in groups.
    TResult
    The type of the result value returned by resultSelector.

    Return Value

    A view of elements of type TResult where each element represents a projection over a group and its key.
    See Also